package src.com.qf.service;


import src.com.qf.entity.Address;

import java.util.List;

public interface AddressService {
    /**
     * 查询用户的地址信息列表
     * @param uid
     * @return
     */
    List<Address> getAddressList(Integer uid);

    /**
     * 设置默认的方法
     * @param id
     * @return
     */
    int setDefault(Integer id, Integer uid);

    /**
     * 添加地址
     * @param strName
     * @param strPhone
     * @param strDetail
     * @param uid
     * @return
     */
    int addAddress(String strName, String strPhone, String strDetail, Integer uid);

    /**
     * 删除地址
     * @param strId
     * @param uid
     * @return
     */
    int deleteAddress(String strId, Integer uid);

    /**
     * 修改地址信息
     * @param strName
     * @param strPhone
     * @param strDetail
     * @param id
     * @param uid
     * @return
     */
    int updateAddress(String strName, String strPhone, String strDetail, Integer id, Integer uid);
}
